<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@include file= "/WEB-INF/pages/base/commImportPage.jsp" %><html>
<head>

    <title>阀值管理</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <script type="text/javascript">

        $(document).ready(function (){
            // 加载页面样式
            loadPageCss();
            // 为详情按钮添加单击事件
            $("#details_btn").live("click",function(){
                new Dialog().showDialog({url:'<c:url value="/settings/user/toParamDetails.html"/>',width:1000,title:'详情'});
            });

            $("#test_code_btn").live("click",function(){
                new Dialog().showDialog({url:'<c:url value="/settings/user/toTestCode.html"/>',title:'详情'});
            });

        })

        function loadPageCss(){
            var _commCss = new CommCss();
            _commCss.addActiveCssToTagAll();
            _commCss.addActiveCssToTabAll({tabObj:document.getElementById("tabDataResult")});
        }


    </script>

</head>

<body>
<div class="main">
    <!--导航栏-->
    <div class="main_navigationbar">
        <a href="#">系统首页</a>&gt;&gt;<a href="#">内检测</a>&gt;&gt;<a href="#">任务管理</a>&gt;&gt;<a href="#">内检测任务管理</a>
    </div>
    <!-- 查询条件 -->
    <div class="main_query">
        <table>
            <tr>
                <td>考评周期:</td>
                <td><input type="text"/></td>
                <td>班组:</td>
                <td><input type="hidden" id="unitid"/>
                    <select>
                        <option>ddd33d</option>
                        <option>dddd</option>
                    </select>
                    <input type="text" id="unitname" onclick="openUnitTree()" /></td>

                <td>计划名称:</td>
                <td><input type="text" id="planname" /></td>
                <td>计划类型:</td>
                <td>
                    <select id="tasktype" >
                        <option value="">不限</option>
                        <option value = "0">计划内</option>
                        <option value = "1">计划外</option>
                    </select>
                </td>
                <td>
                    <input type="button" onclick="queryData()" value="查询" />
                </td>
                <td>
                    <input type="button" onclick="reset()" value="重置" />
                </td>
            </tr>
        </table>
    </div>
    <!--工具栏-->
    <div class="main_toolbar">
        <input type="button" id="create_btn" value="新建" />
        <input type="button" id="update_btn" value="修改" />
        <input type="button" id="delete_btn" value="删除" />
        <input type="button" id="details_btn" value="详情"/>
        <input type="button" id="test_code_btn" value="测试码表"/>
    </div>
    <!-- 数据结果集列表 start -->
    <div class="main_data">
        <table id="tabDataResult" cellpadding="0" cellspacing="0" style="width: 100%">
            <thead>
            <tr>
                <th width="30px"><input type="checkbox"/></th>
                <th>编号</th>
                <th>名称</th>
                <th>创建时间</th>
                <th>电话</th>
            </tr>
            </thead>
            <!--页体start-->
            <tbody>
            <tr>
                <td><input type="checkbox"/></td>
                <td>S001</td>
                <td>黄飞鸿</td>
                <td>2015-4-5</td>
                <td>18933344454</td>
            </tr>
            <tr>
                <td><input type="checkbox"/></td>
                <td>S002</td>
                <td>黄飞</td>
                <td>2015-4-5</td>
                <td>18933344454</td>
            </tr>
            <tr>
                <td><input type="checkbox"/></td>
                <td>S003</td>
                <td>火云邪神</td>
                <td>2015-4-5</td>
                <td>18933344454</td>
            </tr>
            </tbody>
            <tfoot>
            <!--页脚 start-->
            <tr>
                <td colspan="5">
                    <div style="width: 100%" class="pagination">
                        <div style="float: left; text-align: left;">
                            每页显示<select><option value="20">20条</option><option value="30">30条</option><option value="50">50条</option><option value="100">100条</option></select>
                            共<span id="totalPages" style="color: red;">0</span>页<span id="totalRows">0</span>条&nbsp;当前第<span id="currPage">0</span>页</div>
                        <div style="float: right; text-align: right;">
                            <a href="javascript:void(0)" onclick="getPageRows(-2)">&lt;&lt;首页</a>
                            <a href="javascript:void(0)" onclick="getPageRows(-1)">&lt;上一页</a>
                            <a href="javascript:void(0)" onclick="getPageRows(1)">下一页&gt;</a>
                            <a href="javascript:void(0)" onclick="getPageRows(2)">尾页&gt;&gt;</a>
                            到第：<input type="text" id="jumpPage" style="width: 30px;" />页
                            <input type="button" class="_btn" value="跳转" onclick="getPageRows(0)" /></div>
                    </div>
                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
</body>
</html>
